package net.takela.acl.auth.dao;

import net.takela.acl.model.SysFunction;
import net.takela.acl.model.UserRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by baboy on 01/12/2016.
 */
@Repository
public interface AclDao {

    List<SysFunction> getAllFunctions();
    UserRole getRole(Integer id);
    UserRole getRoleByKey(String key);
    List<SysFunction> getRoleFunctions(int roleId);
    List<UserRole> getUserRoles(Long uid);
}
